package com.hycreate.platform.modules.crm.findcustomer;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hycreate.platform.common.service.CrudService;

/**
 * 客户联系人的业务层
 * */
@Service
@Transactional(readOnly = true)
public class FindCustomerContactService extends CrudService<FindCustomerContactDao, FindCustomerContact> {
	
	@Autowired
	private FindCustomerContactDao contactDao;

	public List<FindCustomerContact> findContactsByCustomer(String customerId) {
		return contactDao.findContactsByCustomer(customerId);
	}

	public FindCustomerContact findContactById(String contactId) {
		return contactDao.get(contactId);
	}

}
